package com.ConfigServer.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;

/**
 * 仅用于测试DBUnit的使用
 * @author 77469
 */
@Service
public class DBUnitTestService {
	@Autowired
	private JdbcTemplate jdbcTemplate;
	
	public void updateUserInfo(String id,String name) {
		String sql = "update USER_INFO t set t.NAME=? where t.ID=?";
		jdbcTemplate.update(sql, name,id);
	}

}
